package cn.cheegon.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author cheegon
 * @since 2024-06-26
 */
@Getter
@Setter
@TableName("cms_message")
@Tag(name = "CmsMessage对象", description = "消息表")
public class CmsMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    @TableField("uid")
    private Long uid;

    @Schema(description = "消息内容")
    @TableField("content")
    private String content;

    @Schema(description = "是否匿名发表 1是0否")
    @TableField("anonymous")
    private Integer anonymous;

    @Schema(description = "状态 0待审核,1审核通过,2审核失败,3屏蔽")
    @TableField("status")
    private Integer status;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
